<template>
  <div>
    <input type="checkbox" :checked="checked" @change="handle">点赞
  </div>
</template>

<script>
export default {
    model:{
        prop:'checked',
        event:'change'
    },
    props:['checked'],
    methods:{
        handle(e){
            console.log(e.target.checked);
            this.$emit('change',e.target.checked)
        }
    }
}
</script>

<style>

</style>